import '../styles/appleItem.scss';

function Apple({ apple }) {
  return (
    <div className="appleItem">
      <div className="apple"><img src={require('../images/apple.png')} alt="" /></div>
      <div className="info">
        <div className="name">{apple.name}</div>
        <div className="weight">{apple.weight}克</div>
      </div>
      <div className="btn-div">
        <button onClick={apple.eatApple}> 吃掉 </button>
      </div>
    </div>
  )
}
export default Apple
